package cn.com.cym.gamezao.entity.grk;

import cn.com.cym.gamezao.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Accessors(chain = true)
@Table(name ="sample_medical_history")
@ApiModel(description = "诊疗历史")
public class MedicalHistory extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 3263289532927180035L;

    @ManyToOne
    @JoinColumn(name = "patient_id")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Patient patient;

    /**
     * 主诉
     */
    @Column(length = 200)
    private String  chiefComplaint;

    /**
     * 现病史
     */
    @Column(length = 600)
    private String nowHis;

    /**
     * 既往史
     */
    @Column(length = 600)
    private String pastHis;


    /**
     * 体格检查
     */
    @Column(length = 600)
    private String healthCheck;


    /**
     * 辅助检查
     */
    @Column(length =600)
    private String auxiliaryCheck;


    /**
     * 诊断
     */
    @Column(length = 100)
    private String diagnose;


    /**
     * 治疗方案
     */
    @Column(length = 200)
    private String  cure;

    /**
     * 备注
     */
    @Column(length = 256)
    private String memo;
}
